package com.doerit.laptops.service.impl;

import java.util.Calendar;

import com.doerit.laptops.entity.AbstractEntity;

public abstract class AbstractService {

	public static final String ITEM_NOT_FOUND_ERROR_MESSAGE = "Searched item not found : ";

	public void saveAddSettings(AbstractEntity entity, Integer systemUserID) {
		Calendar calendar = Calendar.getInstance();

		entity.setInsertDateTime(calendar.getTime());
		entity.setUpdateDateTime(calendar.getTime());
	}

	public void saveEditSettings(AbstractEntity entity, Integer systemUserID) {
		Calendar calendar = Calendar.getInstance();
		
		entity.setUpdateDateTime(calendar.getTime());
	}
	
}